package com.asap.demo.table;


import java.io.Serializable;

public class JsonField implements Serializable {

	// 消息中的字段名称
	String topicFieldName;
	// 表中的字段名称
	String dbFieldName;
	// 字段类型
	String fieldType;


	public String getTopicFieldName() {
		return topicFieldName;
	}

	public void setTopicFieldName(String topicFieldName) {
		this.topicFieldName = topicFieldName;
	}

	public String getDbFieldName() {
		return dbFieldName;
	}

	public void setDbFieldName(String dbFieldName) {
		this.dbFieldName = dbFieldName;
	}

	public String getFieldType() {
		return fieldType;
	}

	public void setFieldType(String fieldType) {
		this.fieldType = fieldType;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("{");
		sb.append("\"topicFieldName\":\"")
				.append(topicFieldName).append('\"');
		sb.append(",\"dbFieldName\":\"")
				.append(dbFieldName).append('\"');
		sb.append(",\"fieldType\":\"")
				.append(fieldType).append('\"');
		sb.append('}');
		return sb.toString();
	}
}
